import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    base: process.env.BASE_URL,
    routes: [
        {
            path: '/home',
            component: () => import('./views/Home.vue')
        },
        {
            path: "/",
            redirect: "/home"
        },
        {
            path: "/home/bookrack",
            component: () => import('./views/HomeBookrack.vue')
        },
        {
            path: "/home/ranking",
            component: () => import('./views/Ranking.vue')
        },
        {
            path: "/home/classify",
            component: () => import('./views/Classify.vue')
        },
        {
            path: "/home/classify/detail",
            component: () => import('./views/ClassifyDetail.vue')
        },
        {
            path:"/home/search/search",
            component:() => import("./views/Search.vue")
        },
        {
            path:"/community/comone/comtwo",
            component:() => import("./views/Community.vue")
        },
        {
            path:"/home/mine/download",
            component:() => import("./views/MineDownload.vue")
        },
        {
            path:"/home/mine/my",
            component:() => import("./views/My.vue")
        },
        {
            path:"/home/mine/means",
            component:()=> import("./views/MineMeans.vue")
        },{
            path:"/home/mine/histories",
            component:()=> import("./views/MineHistories.vue")
        },{
            path:"/home/mine/set",
            component:()=> import("./views/MineSet.vue")
        }

    ]
})
